﻿<UserControl x:Class="TestSocket.ConfigPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             Loaded="UserControl_Loaded"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="70"></RowDefinition>
            <RowDefinition Height="5*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Label Margin="10" FontSize="30" Grid.Row="0" HorizontalAlignment="Center">Socket Config</Label>        
            <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="3*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
            <Label Margin="5" Grid.Row="0" Grid.Column="0"  FontSize="25">IP Addr(Local):</Label>
            <TextBox Margin="5" Grid.Row="0" Grid.Column="1" Name="tbIPAddrSrc"  FontSize="25"  Width="auto"></TextBox>
            <Label Margin="5" Grid.Row="1" Grid.Column="0"  FontSize="25">IP Addr(Remote):</Label>
            <TextBox Margin="5" Grid.Row="1" Grid.Column="1" Name="tbIPAddrDest"  FontSize="25"  Width="auto"></TextBox>
            <Label Margin="5" Grid.Row="2" Grid.Column="0" FontSize="25">Msg Port:</Label>
            <TextBox Margin="5" Grid.Row="2" Grid.Column="1" Name="tbMsgPort"  FontSize="25"  Width="auto"></TextBox>
            <Label Margin="5" Grid.Row="3" Grid.Column="0" FontSize="25">Binary Port:</Label>
            <TextBox Margin="5" Grid.Row="3" Grid.Column="1" Name="tbBinaryPort"  FontSize="25" Width="auto"></TextBox>
        </Grid>                                            
        <Button Grid.Row="2" FontSize="20"  Name="btnAction"  Width="500" HorizontalAlignment="Center"  Click="btnAction_Click"></Button>
    </Grid>
</UserControl>
